package com.yanghang.entity;

public class Computer {
    private Integer id;
    private String name;
    private String cpu;
    private String graphic;
    private Double price;
    private Integer bid;
    private Brand brand;

    @Override
    public String toString() {
        return "Computer{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", cpu='" + cpu + '\'' +
                ", graphic='" + graphic + '\'' +
                ", price=" + price +
                ", bid=" + bid +
                ", brand=" + brand +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCpu() {
        return cpu;
    }

    public void setCpu(String cpu) {
        this.cpu = cpu;
    }

    public String getGraphic() {
        return graphic;
    }

    public void setGraphic(String graphic) {
        this.graphic = graphic;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Integer getBid() {
        return bid;
    }

    public void setBid(Integer bid) {
        this.bid = bid;
    }

    public Brand getBrand() {
        return brand;
    }

    public void setBrand(Brand brand) {
        this.brand = brand;
    }

    public Computer(Integer id, String name, String cpu, String graphic, Double price, Integer bid, Brand brand) {
        this.id = id;
        this.name = name;
        this.cpu = cpu;
        this.graphic = graphic;
        this.price = price;
        this.bid = bid;
        this.brand = brand;
    }

    public Computer() {
    }
}
